package cn.com.gensoft.app.core.config;

import com.fasterxml.jackson.module.afterburner.AfterburnerModule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.zalando.problem.ProblemModule;
import org.zalando.problem.validation.ConstraintViolationProblemModule;

/**
 * @author hlj
 */
@Configuration
public class JacksonConfiguration {


    @Bean
    public AfterburnerModule afterburnerModule() {
        return new AfterburnerModule();
    }


    @Bean
    ProblemModule problemModule() {
        return new ProblemModule();
    }


    @Bean
    ConstraintViolationProblemModule constraintViolationProblemModule() {
        return new ConstraintViolationProblemModule();
    }

}
